﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainSuperAdmin.Master" AutoEventWireup="true" CodeBehind="AdministerAdmin.aspx.cs" Inherits="LAB3_Cv.AdministerAdmin" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainPlaceholder" runat="server">
    <asp:GridView ID="GridViewHeadHunter" runat="server" OnRowCancelingEdit="GridViewHeadHunter_RowCancelingEdit" 
        OnRowEditing="GridViewHeadHunter_RowEditing" OnRowUpdating="GridViewHeadHunter_RowUpdating"  
        AutoGenerateColumns="False" AutoGenerateEditButton="True" ShowFooter = "true" >
    <Columns>
        <asp:TemplateField ItemStyle-Width = "20px"  HeaderText = "Id">
        <ItemTemplate>
        <asp:Label ID="lblAdminId" runat="server"
        Text='<%# Eval("AdminId")%>'></asp:Label>
    </ItemTemplate>
            </asp:TemplateField>
<asp:TemplateField ItemStyle-Width = "30px"  HeaderText = "Användarnamn">
    <ItemTemplate>
        <asp:Label ID="lblUserName" runat="server"
        Text='<%# Eval("UserName")%>'></asp:Label>
    </ItemTemplate>
    <FooterTemplate>
        <asp:TextBox ID="txtUserName" Width = "70px"
             runat="server"></asp:TextBox>
    </FooterTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width = "50px"  HeaderText = "Lösenord">
    <ItemTemplate>
        <asp:Label ID="lblPassword" runat="server"
                Text='<%# Eval("Password")%>'></asp:Label>
    </ItemTemplate>
    <FooterTemplate>
        <asp:TextBox ID="txtPassword" runat="server" Width = "70px"></asp:TextBox>
    </FooterTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width = "70px"  HeaderText = "Företag">
    <ItemTemplate>
        <asp:Label ID="lblCompanyName" runat="server"
            Text='<%# Eval("CompanyName")%>'></asp:Label>
    </ItemTemplate>
    <FooterTemplate>
        <asp:TextBox ID="txtCompanyName" runat="server" Width = "70px"></asp:TextBox>
    </FooterTemplate>
</asp:TemplateField>
        <asp:TemplateField ItemStyle-Width = "60px"  HeaderText = "Telefon">
    <ItemTemplate>
        <asp:Label ID="lblPhone" runat="server"
            Text='<%# Eval("Phone")%>'></asp:Label>
    </ItemTemplate>
    <FooterTemplate>
        <asp:TextBox ID="txtPhone" runat="server" Width = "70px"></asp:TextBox>
    </FooterTemplate>
</asp:TemplateField>
        <asp:TemplateField ItemStyle-Width = "80px"  HeaderText = "Adress">
    <ItemTemplate>
        <asp:Label ID="lblAddress" runat="server"
            Text='<%# Eval("Address")%>'></asp:Label>
    </ItemTemplate>
    <FooterTemplate>
        <asp:TextBox ID="txtAddress" runat="server" Width = "70px"></asp:TextBox>
    </FooterTemplate>
</asp:TemplateField>
        <asp:TemplateField ItemStyle-Width = "70px"  HeaderText = "Ort">
    <ItemTemplate>
        <asp:Label ID="lblCity" runat="server"
            Text='<%# Eval("City")%>'></asp:Label>
    </ItemTemplate>
    <FooterTemplate>
        <asp:TextBox ID="txtCity" runat="server" Width = "70px"></asp:TextBox>
    </FooterTemplate>
</asp:TemplateField>
        <asp:TemplateField ItemStyle-Width = "50px"  HeaderText = "Postkod">
    <ItemTemplate>
        <asp:Label ID="lblZip" runat="server"
            Text='<%# Eval("Zip")%>'></asp:Label>
    </ItemTemplate>
    <FooterTemplate>
        <asp:TextBox ID="txtZip" runat="server" Width = "40px"></asp:TextBox>
    </FooterTemplate>
</asp:TemplateField>
        <asp:TemplateField ItemStyle-Width = "90px"  HeaderText = "Epost">
    <ItemTemplate>
        <asp:Label ID="lblEmail" runat="server"
            Text='<%# Eval("Email")%>'></asp:Label>
    </ItemTemplate>
    <FooterTemplate>
        <asp:TextBox ID="txtEmail" runat="server" Width = "70px"></asp:TextBox>
    </FooterTemplate>
</asp:TemplateField>
        <asp:TemplateField ItemStyle-Width = "10px"  HeaderText = "Ta Bort">
    <ItemTemplate>
        <asp:CheckBox ID="lblIsDeleted" runat="server"
            Text='<%# Eval("IsDeleted")%>'></asp:CheckBox>
    </ItemTemplate>
    <EditItemTemplate>
        <asp:CheckBox ID="chkIsDeleted" runat="server"
            Text='<%# Eval("IsDeleted")%>'></asp:CheckBox>
    </EditItemTemplate> 
            </asp:TemplateField>
        <asp:TemplateField>
    <FooterTemplate>
        <asp:Button ID="btnAdd" runat="server" Text="Lägg till"
            OnClick = "AddNewHeadHunter" />
    </FooterTemplate>
</asp:TemplateField>
</Columns>
<AlternatingRowStyle BackColor="#C2D69B"  />
    </asp:GridView>
    

    <asp:GridView ID="GridViewApplicant" runat="server" OnRowCancelingEdit="GridViewApplicant_RowCancelingEdit" 
        OnRowEditing="GridViewApplicant_RowEditing" OnRowUpdating="GridViewApplcant_RowUpdating"  
        AutoGenerateColumns="False" AutoGenerateEditButton="True" AllowSorting="True">
    <Columns>
        <asp:TemplateField ItemStyle-Width = "30px"  HeaderText = "ApplicantId">
        <ItemTemplate>
        <asp:Label ID="lblApplicantId" runat="server"
        Text='<%# Eval("ApplicantId")%>'></asp:Label>
    </ItemTemplate>
            </asp:TemplateField>
<asp:TemplateField ItemStyle-Width = "30px"  HeaderText = "Personnummer">
    <ItemTemplate>
        <asp:Label ID="lblPersonNumber" runat="server"
        Text='<%# Eval("PersonNumber")%>'></asp:Label>
    </ItemTemplate>
</asp:TemplateField>
        <asp:TemplateField ItemStyle-Width = "150px"  HeaderText = "Avaktiverad">
    <ItemTemplate>
        <asp:CheckBox ID="chkApplicantDeleted" runat="server"
            Text='<%# Eval("IsDeleted")%>'></asp:CheckBox>
    </ItemTemplate>
    <EditItemTemplate>
        <asp:CheckBox ID="chkApplicantDeleted" runat="server"
            Text='<%# Eval("IsDeleted")%>'></asp:CheckBox>
    </EditItemTemplate> 
            </asp:TemplateField>
        <asp:TemplateField>
</asp:TemplateField>
</Columns>
<AlternatingRowStyle BackColor="#C2D69B"  />
    </asp:GridView>
    <br />
</asp:Content>
